<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html"/>
	
	<xsl:template match="/report">
		<html>
		<p>
			Report generated on:
			<xsl:value-of select="@timestamp"/>
			(<xsl:value-of select="@timezone"/>)
			with version <xsl:value-of select="@version"/>
		</p>
		
		<br/>
		
		<table>
			<tr>
				<td>Metric Name</td>
				<td>Timestamp</td>
				<td>Value</td>
				<td>Type</td>
				<td>Units</td>
				<td>Spoof</td>
				<td>Direction</td>
			</tr>
		<xsl:for-each select="metric_data">
			<tr>
				<td><xsl:value-of select="metric_name"/></td>
				<td><xsl:value-of select="timestamp"/></td>
				<td><xsl:value-of select="value"/></td>
				<td><xsl:value-of select="type"/></td>
				<td><xsl:value-of select="units"/></td>
				<td><xsl:value-of select="spoof"/></td>
				<td><xsl:value-of select="direction"/></td>
			</tr>
		</xsl:for-each>
		</table>
		</html>
	</xsl:template>
	
</xsl:stylesheet>